package com.bingfor.easycablelink.my;

import android.databinding.DataBindingUtil;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bingfor.easycablelink.databinding.AddressListItemBinding;
import com.bingfor.easycablelink.databinding.MessageListItemBinding;

/**
 * Created by LY on 2017/2/27.
 */

public class AddressListAdapter extends RecyclerView.Adapter<AddressListAdapter.MessageViewHolder> {



    public AddressListAdapter( ) {


    }
    @Override
    public AddressListAdapter.MessageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new AddressListAdapter.MessageViewHolder(
                AddressListItemBinding
                        .inflate(LayoutInflater.from(parent.getContext()), parent, false)
                        .getRoot()
        );
    }

    @Override
    public void onBindViewHolder(AddressListAdapter.MessageViewHolder holder, int position) {
        AddressListItemBinding binding = DataBindingUtil.getBinding(holder.itemView);



    }

    @Override
    public int getItemCount() {
        return 10;
    }

    protected static class MessageViewHolder extends RecyclerView.ViewHolder {

        public MessageViewHolder(View itemView) {
            super(itemView);

        }
    }
}
